<template>
  <div class="child">
    是否同意：<input type="checkbox" :checked="isAgree" @input="updateAgree($event.target.checked)">
  </div>
</template>

<script>
  export default {
    name:'Child',
    props:['isAgree','updateAgree'],
    /* methods: {
      handleAgree(event){
        this.updateAgree(event.target.checked)
      }
    }, */
  }
</script>

<style scoped>
  .child {
    background-color: skyblue;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>